", ")"); Jdbcoperation.getall (); Jdbcoperation.update (new Student ("Bean", "" "," 7 ")); Jdbcoperation.delete ("Achilles"); Jdbcoperation.getall ();} Output in Eclipse============================1 Ender male 8 2 Bean male 6 3 Petra FEMA 9 4 Peter male 9 5 _graff male 6 GOD FEMA 255 ============================
============================
1 Ender male 8
2 Bean male 6
3 Petra FEMA 9
4 Peter male 9
5 _graff male
6 GOD FEMA 255
============================
============================
1 Ender male 8
2 Bean male 6
3 Petra FEMA
pstmt; try { pstmt = (preparedstatement) conn.preparestatement (SQL); i = Pstmt.executeupdate (); System.out.println ("Resutl:" + i); Pstmt.close (); Conn.close (); } catch (SQLException e) { e.printstacktrace (); } return i;}Iv. TestingBefore testing, you need to open the corresponding database service in the system. The startup command for MySQL under Windows isnet start MySQLTest codepublic static void Main (String args[]) { jdbcoperat
male 8
2 Bean male 6
3 Petra FEMA 9
4 Peter male 9
5 _graff male
6 GOD FEMA 255
============================
============================
1 Ender male 8
2 Bean male 6
3 Petra FEMA 9
4 Peter Male 9
5
[]) {
jdbcoperation.getall ();
Jdbcoperation.insert (new Student ("Achilles", "Male", ")"); Jdbcoperation.getall (); Jdbcoperation.update (new Student ("Bean", "" "," 7 ")); Jdbcoperation.delete ("Achilles"); Jdbcoperation.getall (); } Output in Eclipse ============================
1 Ender male 8
2 Bean male 6
3 Petra FEMA 9
4 Peter male 9
5 _graff male
6 G
open the corresponding database service in the system. The startup command for MySQL under Windows isnet start MySQLTest code Public Static void Main (String args[]) { jdbcoperation.getall (); Jdbcoperation.insert (new Student ("Achilles", "Male", ")"); Jdbcoperation.getall (); Jdbcoperation.update (new Student ("Bean", "" "," 7 ")); Jdbcoperation.delete ("Achilles"); Jdbcoperation.getall ();}Output in Eclipse============================1 Ender male 8 2 Bean
capabilities based on performance design, and its performance is based on atc-40,fema-356 or ATC-440 automatic evaluation. PERFORM 3D is a non-linear software tool dedicated to seismic resistance design. Nonlinear analysis of complex structures using deformation-based or strength-based limiting states, including intricate layout of shear wall structures. Model data can be imported from Etabs or SAP2000. Supports multiple types of cells, including bea
expression does not contain parentheses, and group (1) is definitely incorrect. II. expanded acronyms specific example: FEMA Federal Emergency Management AgencyIRA Irish Republican ArmyDUP sans Unionist Party FDA Food and Drug AdministrationOLC Office of Legal Counsel analysis the acronym FEMA is decomposed into F *** E *** M * ** A *** regular uppercase letters + lowercase letters (greater than or equal t
extensionsSpecific examplesFEMA Federal Emergency Management Agencyira Irish Republican armydup Democratic Unionist PartyFDA Food and Drug administrationolc Office of Legal counselAnalysisAbbreviation FEMA decomposition to f*** e*** m*** a*** regular capital letter + lowercase (greater than or equal to 1) + spacesReference CodeImport Redef expand_abbr (Sen, abbr): lenabbr = Len (abbr) ma = ' for I in range (0, lenabbr):
same group (0) that matches the overall result of the regular expression
Group (1) lists the first bracket matching part, Group (2) lists the second bracket matching part, and group (3) lists the third bracket matching part.
2) No match succeeded, Re.search () returns none
3 of course Zheng is the expression of no parentheses, group (1) certainly wrong.
Two. Acronym expansion
Specific examples
FEMA Emergency Management AgencyIRA Irish Republica
operation
toString sql = "Update students set name = ' Xiaoheng ' WHERE name = ' Ender '";
+ System.out.println (SQL); - intStatentnum =stat.executeupdate (SQL); the System.out.println (statentnum); * if(statentnum>0) {
$SYSTEM.OUT.PRINTLN ("Update OK"); Panax Notoginseng }
-
the //perform a delete operation
+sql = "Delete from students where name = ' Peter '";
A System.out.println (SQL); theStatentnum =stat.executeupdate (SQL); +System.out.p
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.